import { EnumDict, EnableBizDict } from "jmash-core";
import { Constant } from "@/constant";
import { DictTypeBizDict, EntryBizLayDict, EntryIdBizLayDict } from "@/api/dict/index";

//数据字典
export class Dict {
    //枚举 数据字典类型
    static readonly entryTypesEnum = new EnumDict(Constant.MODULE_DICT, Constant.ENUM_ENTRY_TYPES);
    //业务 普通字典类型
    static readonly normalDictType = new DictTypeBizDict(Constant.BIZ_DICT_TYPE_NORMAL);
    //业务 层级字典类型
    static readonly layoutDictType = new DictTypeBizDict(Constant.BIZ_DICT_TYPE_LAYOUT);
    //业务 启用/禁用状态
    static readonly enableBiz = new EnableBizDict("");
    //层级数据字典Code
    static readonly layoutTestDict = new EntryBizLayDict({ typeCode: "lay_test" });
    //层级数据字典ID
    static readonly layoutTestIdDict = new EntryIdBizLayDict({ typeCode: "lay_test" });
}